class AnimationPanel extends eui.Component {
	public constructor() {
		super();
		this.skinName = skins.AnimationSkin;
	}
	public tweenGroup:egret.tween.TweenGroup;
	public button:eui.Button;

	private onTweenGroupComplete():void{
		console.log("TweenGroup play complete");
		
	}
	private onTweenItemComplete(e:egret.Event):void
	{
		const item = e.data as egret.tween.TweenItem;
		console.log(item.target);
		console.log("tween item play completed");
	}

	private onButtonClick():void
	{
		console.log("点击了播放按钮")
		this.tweenGroup.play();
	}
	private btn:eui.Button;
	protected createChildren():void
	{
		super.createChildren();
		this.btn.label;
		this.tweenGroup.addEventListener(egret.Event.COMPLETE,this.onTweenGroupComplete,this);
		this.tweenGroup.addEventListener("itemComplete",this.onTweenItemComplete,this);
		this.button.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onButtonClick,this);
	}
}